package com.oleg.bigidoc.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;

@SuppressWarnings("serial")
@Entity
public class Employee implements Serializable {

    // Properties ---------------------------------------------------------------------------------

    @Id long id;    
    String login;
    String password;
    String lastName;
    String firstName;    
    String middleName;
    String officer;
    String phone;
    String attestat;
    String address;
    String email;
    
    

    // Getters/setters ----------------------------------------------------------------------------

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }



    /**
     * Returns the String representation of this User. Not required, it just pleases reading logs.
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String.format("User[id=%d,email=%s,firstName=%s,lastName=%s]", 
            id, email, firstName, lastName);
    }

}